package ysc.cqnu.operdb.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import ysc.cqnu.operdb.entity.ResultData;
import ysc.cqnu.operdb.serviceImpl.EnterDrawingInfoViewDetailsServiceImpl;

@CrossOrigin
@Controller
@ResponseBody
public class EnterDrawingInfoViewDetailsController {
    @Autowired
    private ResultData resultData;
    @Autowired
    private EnterDrawingInfoViewDetailsServiceImpl enterDrawingInfoViewDetailsService;
    @RequestMapping(value = "/drawinginfodetails",method = RequestMethod.GET)
    public ResultData drawinginfodetails(@RequestParam(value = "id") String id){
        System.out.println("画图录入详情按钮前端已连接");
        resultData = enterDrawingInfoViewDetailsService.enterDrawingInfoViewDetailsServiceImpl(id);
        return resultData;
    }
}
